﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Forms;

using Lottery.MediaData.Core;

namespace Lottery.MediaData.UI.Control {
    class WZGrid : DZXGrid {
        protected override string TableKey {
            get {
                return "4";
            }
        }

        /// <summary>
        /// 在 '大中小' 和 '首次末' 之间切换
        /// </summary>
        /// <param name="text"></param>
        public void SetText(string text) {
            if (text == "大中小") {
                this[0, 0].Value = "大数(场)";
                this[0, 1].Value = "中数(场)";
                this[0, 2].Value = "小数(场)";
                this[0, 3].Value = "与预测号相同";
                this[0, 4].Value = "其中：大数同";
                this[0, 5].Value = "      中数同";
                this[0, 6].Value = "      小数同";
                this[0, 7].Value = "与预测号相邻";
                this[0, 8].Value = "其中：大数邻";
                this[0, 9].Value = "      中数邻";
                this[0, 10].Value = "      小数邻";
                this[0, 11].Value = "与预测号同+邻";
                this[0, 12].Value = "其中：大同+邻";
                this[0, 13].Value = "      中同+邻";
                this[0, 14].Value = "      小同+邻";
            } else {
                this[0, 0].Value = "首数(场)";
                this[0, 1].Value = "次数(场)";
                this[0, 2].Value = "末数(场)";
                this[0, 3].Value = "与预测号相同";
                this[0, 4].Value = "其中：首数同";
                this[0, 5].Value = "      次数同";
                this[0, 6].Value = "      末数同";
                this[0, 7].Value = "与预测号相邻";
                this[0, 8].Value = "其中：首数邻";
                this[0, 9].Value = "      次数邻";
                this[0, 10].Value = "      末数邻";
                this[0, 11].Value = "与预测号同+邻";
                this[0, 12].Value = "其中：首同+邻";
                this[0, 13].Value = "      次同+邻";
                this[0, 14].Value = "      末同+邻";
            }
        }
    }
}
